/**
 * 
 */
package com.amnc;

import java.io.InputStream;
//
//import org.junit.After;
//import org.junit.AfterClass;
//import org.junit.Assert;
//import org.junit.Before;
//import org.junit.BeforeClass;
//import org.junit.Test;



import com.amnc.common.dif.DIFSheet;

/**
 * @author Administrator
 *
 */
public class DifTest {
	public static void main(String ar[]) throws Exception {
//		InputStream inStream = new FileInputStream("cattles.dif");
		//InputStream inStream = this.getClass().getClassLoader().getResourceAsStream("cattles.dif");
	//	InputStream inStream = new  DifTest().getClass().getClassLoader().getResourceAsStream("D:\\Data\\entry\\entry.dif");
		InputStream inStream = ClassLoader.getSystemResourceAsStream("entry.dif");
		DIFSheet sheet = new DIFSheet(inStream);
        System.out.println(sheet);
        
        String cellValue= sheet.getRow(0).getCell(2).getStringCellValue();
     //   Assert.assertEquals("��ĩͷ��", cellValue);
        
        cellValue= sheet.getRow(1).getCell(0).getStringCellValue();
    //    Assert.assertEquals("һ̥ţ", cellValue);
	}
}
